home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1996 #15
/
Monster Media Number 15 (Monster Media)(July 1996).ISO
/
arc
/
fact127.zip
/
ARL.BTM
< prev
next >
Wrap
Text File
|
1996-05-23
|
3KB
|
115 lines
::*########################################################################
::* ARL.BTM
::*
::* Simple 4DOS Archive Lister. Allows you to view a list of files within
::* archives. It just looks at the archive extension and then calls the
::* corresponding archiver to list the files.
::*
::* Public Domain, by David Daniel Anderson. Version 1.00, 13-Apr-1996
::* Comments welcome on ILink, RIME, or via email: dda@panasia.com
::*
::* Run with an empty command line to view basic help and information.
::*
::* Note: if you want to add archive extensions, see lines 47 and below.
::*########################################################################
setlocal
if "%1"=="" goto help
for %f in (%1) do gosub view
quit 0
::* The section below is just a gosub!
:VIEW
set ext=%@ext[%f]
if "%ext"=="" return
iff islabel %ext then
echo.
echo /// ARL.BTM - Listing contents of %f \\\
echo.
gosub %ext
iff "%2" ne "" then
iff %@lower[%2]=/p then
echo.
pause
endiff
endiff
endiff
return
::* This is just a simple help screen, expand it if you wish.
:HELP
echo.
echo Name: ARL.BTM
echo.
echo Purpose: List contents of archives, with standard 4DOS commands.
echo.
echo Usage: ARL archives [/p]
echo.
echo Where: /p causes ARL to pause after every archive [optional]
echo.
echo Example: ARL somefile.zoo
echo.
quit 1
::*########################################################################
::* Following are the archive extensions that you may encounter.
::* You should comment out definitions for any programs you do not have.
::* ======================================================================
::* If you wish to define your own, just follow this format:
::*
::* 1) Put a label that matches the archive extension. (e.g. ":ZIP")
::*
::* 2) On the next line, put the following information:
::* a) the program name that will list the archive's contents;
::* b) that program's switch to list the archive's contents;
::* c) %f (to indicate where the archive name will be placed);
::* d) a wildcard specification, if the archiver needs one.
::*
::* 3) Put "return" as the last line or command. Don't forget!
::*
::*########################################################################
:ACB
ACB l %f^return
:AIN
AIN v %f^return
:ARC
PKUNPAK -v %f^return
:ARJ
ARJ l %f^return
:HA
HA l %f^return
:HAP
PAH l %f *.*^return
:HPK
HPACK v %f^return
:HYP
HYPER -v %f^return
:JRC
JRCL %f^return
:LIB
CODEC -v %f * -m -q^return
:LIM
LIMIT l %f^return
:LZH
LHA l %f^return
:LZS
LHA l %f^return
:PAK
PAK v %f^return
:PAQ
UNPAQ -v %f^return
:PUT
LHA l %f^return
:RAR
RAR l -std %f^return
:SAR
SAR l %f^return
:SQZ
SQZ l %f^return
:UC2
UC vs %f^return
:X
X1 l %f^return
:YC
YAC l %f^return
:ZIP
PKZIP -v %f^return
:ZOO
ZOO -list %f^return